package com.cnap.multiclouldmgmt.model.dockerHarborModel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author dyq
 * harbor 操作model
 */
@ApiModel(value = "com.cnap.multiclouldmgmt.model.dockerHarborModel.HarborPolicyModel",description = "注册仓库要用到的信息")
public class HarborPolicyModel {

    //name
    @ApiModelProperty(value = "name")
    private String name;

    //description
    @ApiModelProperty(value = "description")
    private String description;

    //源
    private String src_registry;

    //目的
    private DestRegistryModel dest_registry;

    //空间
    private String dest_namespace;

    //触发可能
    private TriggerModel trigger;

    //是否查询ssh
    private boolean enabled = true;

    //是否触发
    private boolean deletion = true;

    //override
    private boolean override = true;

    //过滤器
    private List<FilterModel> filters;

    /**
     * get
     *
     * @return Name
     */
    public String getName() {
        return name;
    }

    /**
     * set
     *
     * @param name name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * get
     *
     * @return Description
     */
    public String getDescription() {
        return description;
    }

    /**
     * set
     *
     * @param description description
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * get
     *
     * @return Src_registry
     */
    public String getSrc_registry() {
        return src_registry;
    }

    /**
     * set
     *
     * @param src_registry src_registry
     */
    public void setSrc_registry(String src_registry) {
        this.src_registry = src_registry;
    }

    /**
     * get
     *
     * @return Dest_registry
     */
    public DestRegistryModel getDest_registry() {
        return dest_registry;
    }

    /**
     * set
     *
     * @param dest_registry dest_registry
     */
    public void setDest_registry(DestRegistryModel dest_registry) {
        this.dest_registry = dest_registry;
    }

    /**
     * get
     *
     * @return Dest_namespace
     */
    public String getDest_namespace() {
        return dest_namespace;
    }

    /**
     * set
     *
     * @param dest_namespace dest_namespace
     */
    public void setDest_namespace(String dest_namespace) {
        this.dest_namespace = dest_namespace;
    }

    /**
     * get
     *
     * @return Trigger
     */
    public TriggerModel getTrigger() {
        return trigger;
    }

    /**
     * set
     *
     * @param trigger trigger
     */
    public void setTrigger(TriggerModel trigger) {
        this.trigger = trigger;
    }

    /**
     * get
     *
     * @return Enabled
     */
    public boolean isEnabled() {
        return enabled;
    }

    /**
     * set
     *
     * @param enabled enabled
     */
    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    /**
     * get
     *
     * @return Deletion
     */
    public boolean isDeletion() {
        return deletion;
    }

    /**
     * set
     *
     * @param deletion deletion
     */
    public void setDeletion(boolean deletion) {
        this.deletion = deletion;
    }

    /**
     * get
     *
     * @return Override
     */
    public boolean isOverride() {
        return override;
    }

    /**
     * set
     *
     * @param override override
     */
    public void setOverride(boolean override) {
        this.override = override;
    }

    /**
     * get
     *
     * @return Filters
     */
    public List<FilterModel> getFilters() {
        return filters;
    }

    /**
     * set
     *
     * @param filters filters
     */
    public void setFilters(List<FilterModel> filters) {
        this.filters = filters;
    }
}
